package io.renren.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 *
 * @author hyc
 * @email 2250242464qq.com
 * @date 2024-04-12 00:36:23
 */
@Data
@TableName("`order`")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Integer id;
	/**
	 * 订单id
	 */
	private String orderId;
	/**
	 * 状态
	 */
	private Integer state;
	/**
	 * 创建时间
	 */
	private Date created;
	/**
	 * 运费
	 */
	private Double freight;
	/**
	 * 支付方式
	 */
	private Integer payStyle;
	/**
	 * 收货地址id
	 */
	private String distId;
	/**
	 * 总金额
	 */
	private Double total;
	/**
	 * 用户id
	 */
	private String userId;
	/**
	 * 订单修改次数
	 */
	private Integer updateTimes;

	@TableField(exist = false)
	private String stateName;
	@TableField(exist = false)
	private String payStyleName;
	@TableField(exist = false)
	private String userName;

}
